import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { MaterialManageComponent } from './material-manage.component';
import { MaterialAddComponent } from './material-add/material-add.component';

const MaterialManageRoutes: Routes = [
  {
    path: '',
    component: MaterialManageComponent,
    data: { name: '原料管理', lv: 1, url: 'recipes/material-manage' },
  }, {
    path: 'add',
    component: MaterialAddComponent,
    data: { name: '新增原料', lv: 2, url: 'recipes/material-manage/add' },
  }
];


@NgModule({
  imports: [
    RouterModule.forChild(MaterialManageRoutes)
  ],
  exports: [
    RouterModule
  ]
})

export class MaterialManageRoutingModule { }
